Hybris UX Api icon

Hybris UX Api

(0 reviews)

TMF639 - patchLogicalResource

This operation allows to reserve or release from the inventory for below use cases:

  1. Postpaid MSISDN, eSIM(ICCID)
  2. Prepaid MSISDN, eSIM(ICCID)
URL
http://[localhost]:[port]/ecom-ux/v1/{businessId}/logicalResource/{id}
URL PARAMS
nametypedescriptionrequired
businessIdString2 letter ISO 3166 country code (PA) identifying the business unit.Y
idstringResource identification number for which needs to patch the data.Y
Headers
nametypedescriptionrequired
client-idstringThe client-id identifying the channel. Minimum characters: 5Y
client-secretstringPassword associated with the client-id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.N
Data Model - Request
field nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A, conditionallyMandatory-C/M)
resourceStatusStringTracks the lifecycle status of the resource, such as planning, installing, operating, retiring and so on. Possible values for PA: available, reservedY (PA)
@typeStringtype of the concrete resource. Possible value for PA: MSISDN, ESIMY (PA)
relatedParty[].idStringunique identifier of CustomerY (PA)
relatedParty[].nameStringname of CustomerY (PA only for PREPAID usecase)
relatedParty[].roleStringRole played by the related partyC/M (PA only for POSTPAID ESIM usecase)
relatedParty[].'@referredType'StringDefines the type of the 'relatedParty[].id' Eg: Customer, EmployeeY (PA)
resourceCharacteristic[].nameStringName of the characteristic Possible values for PA: SERVICEY (PA)
resourceCharacteristic[].valueTypeStringData type of the value of the characteristicY (PA)
resourceCharacteristic[].valueStringValue of the characteristic Possible values for PA: POSTPAID, PREPAIDY (PA)
relatedParty subResource -Data Model
field nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A, conditionalMandatory- C/M)examples
relatedParty[].'@referredType' == "Customer"StringCustomer NameC/M (PA)PA(ESIM):
{
"id": "Lakshmi",
"@referredType" : "Customer"
}
relatedParty[].'@referredType' == "Employee"StringEmployee numberC/M (PA only for POSTPAID)PA(MSISDN):
{
"id": "<**>",
"@referredType" : "Employee"
}
PA(ESIM):
{
"id": "<**>",
"role": "authorizer",
"@referredType" : "Employee"
}
resourceCharacteristic subResource -Data Model
field nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)examples
resourceCharacteristic[].name == "SERVICE"StringType of the Service
Possible Value for PA: POSTPAID,PREPAID
Y (PA only for POSTPAID)PA(MSISDN & ESIM):
{
"name": "SERVICE",
"valueType": "string",
"value": "POSTPAID"
}
resourceCharacteristic[].name == "NumberArea"StringType of the NumberArea Example Value for PA: MOVY (PA only for POSTPAID)PA(MSISDN):
{
"name": "NumberArea",
"valueType": "string",
"value": "MOV"
}
resourceCharacteristic[].name == "BillingAccount.id"StringCustomer billingAccountY (PA only for POSTPAID)PA(MSISDN):
{
"name": "BillingAccount.id",
"valueType": "string",
"value": "358155960000"
}
Data Model - Response
field nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A, conditionalMandatory- C/M)
idStringIdentifier of an instance of the resource. Required to be unique within the resource type.Y (PA)
hrefStringHyperlink referenceY (PA only for POSTPAID)
resourceStatusStringTracks the lifecycle status of the resource, such as planning, installing, operating, retiring and so on. Possible values for PA are: available, reservedY (PA)
@typeStringtype of the concrete resource. Possible value for PA: MSISDN, ESIMY (PA only for POSTPAID)
relatedParty[].idStringunique identifierY (PA only for POSTPAID)
relatedParty[].roleStringRole played by the related partyC/M (PA : ESIM only for POSTPAID)
relatedParty[].'@referredType'StringThe actual type of the target instance when needed for disambiguation.Y (PA only for POSTPAID)
resourceCharacteristic[].nameStringName of the characteristicY (PA only for POSTPAID)
resourceCharacteristic[].valueTypeStringData type of the value of the characteristicY (PA only for POSTPAID)
resourceCharacteristic[].valueStringValue of the characteristicY (PA only for POSTPAID)
resourceTypeStringType of the concrete resource. Possible value for PA: MSISDN, ESIMY (PA only for PREPAID)
relatedParty subResource -Data Model
field nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A,conditionalMandatory- C/M)examples
relatedParty[].'@referredType' == "Customer"StringCustomer NameY (PA only for POSTPAID)PA(ESIM):
{
"id": "Lakshmi",
"@referredType" : "Customer"
}
relatedParty[].'@referredType' == "Employee"StringEmployee numberC/M (PA only for POSTPAID)PA(MSISDN):
{
"id": "<*>",
"@referredType" : "Employee"
}
PA(ESIM):
{
"id": "<**>",
"role": "authorizer",
"@referredType" : "Employee"
}
resourceCharacteristic subResource -Data Model
field nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)examples
resourceCharacteristic[].name == "SERVICE"StringType of the Service Possible Value for PA: POSTPAIDY (PA)PA(MSISDN & ESIM):
{
"name": "SERVICE",
"valueType": "string",
"value": "POSTPAID"
}
resourceCharacteristic[].name == "NumberArea"StringType of the NumberArea Example Value for PA: MOVY (PA)PA(MSISDN):
{
"name": "NumberArea",
"valueType": "string",
"value": "MOV"
}
resourceCharacteristic[].name == "BillingAccount.id"StringCustomer billingAccountY (PA)PA(MSISDN):
{
"name": "BillingAccount.id",
"valueType": "string",
"value": "358155960000"
}
Key considerations
PA Implementation
Service number(MSISDN) usecase

POSTPAID

- As this is implemented for mobile postpaid customers, if resourceCharacteristic[].name == "SERVICE" then value should be "POSTPAID".
- For MSISDN resourceCharacteristic[].name == "NumberArea" ,For FAST TRACK provisioning, the following value="MOV" is currently working in the Non-Prod environment. However, for the PROD instance, the channel must discuss and finalize the appropriate value with the business, which then need to be configured in the Liberate PROD instance.
- For MSISDN resourceCharacteristic[].name == "BillingAccount.id" then value should be customer billingAccount.
- To reserve/release a MSISDN, set the @type to MSISDN.
- To reserve a MSISDN, set the resourceStatus to "reserved".
- To release a MSISDN, set the resourceStatus to "available".
- If relatedParty[].'@referredType' == "Employee", the following relatedParty[].id value we need to pass employee code. However, for the PROD instance, the channel must discuss and finalize the appropriate values with the business, which then need to be configured in the Liberate PROD instance.
- For reserve/release MSISDN, refer to note section for API specification.

PREPAID

- As this is implemented for mobile prepaid customers, if resourceCharacteristic[].name == "SERVICE" then value should be "PREPAID".
- To reserve/release a MSISDN, set the @type to MSISDN.
- To reserve a MSISDN, set the resourceStatus to "reserved".
- To release a MSISDN, set the resourceStatus to "available".
- If relatedParty[].'@referredType' == "Customer" then Customer Name should be passed in relatedParty[].name
- For reserve/release MSISDN, refer to note section for API specification.
eSIM (ICCID) usecase

POSTPAID

- As this is implemented for mobile postpaid customers, if resourceCharacteristic[].name == "SERVICE" then value should be "POSTPAID".
- To reserve/release a eSIM(ICCID), set the @type to ESIM.
- To reserve a eSIM(ICCID), set the resourceStatus to "reserved".
- To release a eSIM(ICCID), set the resourceStatus to "available".
- If relatedParty[].'@referredType' == "Employee" and relatedParty[].role == "authorizer" are given then employee number should be passed in relatedParty[].id
- If relatedParty[].'@referredType' == "Customer" then Customer billing account id should be passed in relatedParty[].id
- For reserve/release eSIM(ICCID), refer to note section for API specification.

PREPAID

- As this is implemented for mobile prepaid customers, if resourceCharacteristic[].name == "SERVICE" then value should be "PREPAID".
- To reserve/release a eSIM, set the @type to eSIM.
- To reserve a eSIM, set the resourceStatus to "reserved".
- To release a eSIM, set the resourceStatus to "available".
- If relatedParty[].'@referredType' == "Customer" then Customer Name should be passed in relatedParty[].name
- For reserve/release eSIM, refer to note section for API specification.

Note : For request and response examples please refer to this URL Patch LogicalResource Specification


Reviews